#!/bin/bash
. ~/.bash_profile

cd /home/ulss/project/ulss-1xx-monitor


count=`ps -ef|grep ulss-1xx-monitor|grep java |grep -v grep  |wc -l`

timestr=`date +"%Y-%m-%d %H:%M:%S"`
if [ $count -lt 1 ]
 then
   ./start.sh &
   echo "monitor reboot  at $timestr ..." >>run.log
else
   echo "monitor running ok  at $timestr ..." >>run.log
fi